home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ RIVA TNT 4.xpl.old < prev    next >
Text File  |  2001-04-20  |  3KB  |  103 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Hardware\Video Cards\NVidia\Riva TNT"
  5. "NAME"="Windows NT/2K/XP Settings"
  6. "OSVERSION"="010101"
  7. "VERSION"="1.08"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Enable HW Curve"
  10. "TEXT 2"="Enable Stretch Interpolation"
  11. "DESCRIPTION 1"="If HW Curve is *DISABLED*, it turns off GDI hardware acceleration for curve drawing. If you *DISABLE* this option, hardware acceleration will be bypassed and force your card to use Windows NT/2000/XP for rendering circles, ellipses, arcs etc."
  12. "DESCRIPTION 2"="If Stretch Interpolation is *DISABLED* it prevents pixel interpolation of stretched bitmap images. *DISABLE* this option if you do not want Windows NT/2000/XP to smoothen bitmaps when they are enlarged."
  13. "DESCRIPTION 3"="NOTE: Please use the NVidia reference drivers from http://www.nvidia.com with this plug-in as it may not work properly with third party drivers such as Creative Labs, Hercules, etc.  This plug-in is designed for use with the NVidia reference drivers."
  14. "AUTHOR"="Xteq Systems (CptSiskoX)"
  15. "CONTACTURL"="http://www.xteq.com"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"=" "
  18. "COMMENT 2"="http://www.nvidia.com/drivers/"
  19.  
  20.  
  21. sPC="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\nv4\Device0\"
  22. sV1="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\nv4\Device0\DisableHWCurve" 'DW 
  23. sV2="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\nv4\Device0\NoStretchBltInterpolate" 'DW
  24. Sub Plugin_Initialize 
  25. If (GetWinVer=2 or GetWinVer=4 or GetWinVer=6) and RegPathExists(sPC) then
  26.    i=RegReadValue(sV1)
  27.    if i=0 then SetUiElement 1,true
  28.  
  29.    i=RegReadValue(sV2)
  30.    if i=0 then SetUiElement 2,true
  31.  
  32.    'i=RegReadValue(sV3)
  33.    'if i=1 then SetUiElement 3,true
  34.  
  35.    'i=RegReadValue(sV4)
  36.    'if i=0 and IsEmpty(i)=false then SetUiElement 4,true
  37.  
  38.    'i=RegReadValue(sV5)
  39.    'if i=0 or IsEmpty(i)=true then SetUiElement 5,true
  40. else
  41.    Call Disable()
  42. end if  
  43. End Sub
  44.  
  45.  
  46. Sub Plugin_CheckData(ElementIndex)
  47. End Sub
  48.  
  49.  
  50.  
  51. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  52.  b=GetUIElement(1)
  53.  if b=true then
  54.     i=0
  55.  else
  56.     i=1
  57.  end if
  58.  Call RegWriteValue(sV1,i,2)
  59.  
  60.  b=GetUIElement(2)
  61.  if b=true then
  62.     i=0
  63.  else
  64.     i=1
  65.  end if
  66.  Call RegWriteValue(sV2,i,2)
  67.  
  68. ' b=GetUIElement(3)
  69. ' if b=true then
  70. '    i=1
  71. ' else
  72. '    i=0
  73. ' end if
  74. ' Call RegWriteValue(sV3,i,2)
  75.  
  76. ' b=GetUIElement(4)
  77. ' if b=true then
  78. '    i=0
  79. ' else
  80. '    i=1
  81. ' end if
  82. ' Call RegWriteValue(sV4,i,2)
  83.  
  84.  
  85. ' b=GetUIElement(5)
  86. ' if b=true then
  87. '    i=0
  88. ' else
  89. '    i=1
  90. ' end if
  91. ' Call RegWriteValue(sV5,i,2)
  92.  
  93.  
  94.  Call Restart()
  95. End Sub
  96.  
  97.  
  98. Sub Plugin_Terminate 
  99. End Sub
  100.  
  101.  
  102.  
  103.